<%@page contentType="text/html; charset=utf-8" language="java" %>
<%@page import="bean.*" %>
<%@page import="biz.*" %>
<%
Item item = null;
if(request.getParameter("iid")!=null){
	item = ItemBiz.getItemByIid(Integer.parseInt(request.getParameter("iid").toString()));
	if (item.getLevel()!=0) {int iid = item.getRoot(); response.sendRedirect("item.jsp?iid="+iid);}
}

if (item.equals(null)) response.sendRedirect("index.jsp");
%>
<html>
	<head>
	<title><%=item.getIname()%>-iWiki,make life better!</title>
	<link href="css.css" rel="stylesheet" type="text/css">
	</head>
	<body>
	<jsp:include page="/head.jsp"/>
			<div id="mainpage">
		<div class="leftbar">
		<fieldset class="u_fieldset">
		<legend id="u_legend">快速目录</legend>
		<ul id="left_itemnav">
			<%=ShowBiz.ItemListtoLink(ItemBiz.genList(item))%>
        </ul>
        </fieldset>
		</div>
		<div class="rightbar">
		<%=ShowBiz.ItemListtoHtml(ItemBiz.genList(item))%>
		</div>
		</div>
		
	<jsp:include page="/copyright.html"/>
	</body>
</html>